
public class Demo1 {

	public static void main(String[] args) {

		double money = 1000;
		double rate = 0.003;

		for (int i = 0; i <= 5; i++) {
			money += money * rate;

		}
		System.out.println("五年后本金加利息:" + money);

	}

}
